<template>
  <div>
    <Input v-model="title" size="small" placeholder="请输入搜索内容" @input="search"/>
    <Tree :data="nodeList" :show-checkbox="true" ref="tree" @on-select-change="selectedNode"></Tree>
  </div>
</template>

<script>
import { getTree } from '@/api/sys/org'
import tree_minxin from '@/utils/tree_minxin.js'
export default {
  mixins: [tree_minxin],
  created() {
    getTree().then(res => {
      this.nodeList = res.data
      this.modules = res.data
    })
  }
}
</script>
